<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%request.setAttribute("path", request.getContextPath());%>
<jsp:include page="head.jsp" />
<link rel="stylesheet" type="text/css" href="${path}/resources/css/monitor-task.min.css?" />
<jsp:include page="nav.jsp" />
<div id="content" class="task-content">
	<div id="breadcrumb">
		<a href="#" title="Go to Home" class="tip-bottom">
		 	<i class="icon-home"></i>Home
	 	</a>
	  <a href="#" class="current">task</a>
	</div>
	<div class="content-table">
		<div style="margin : 10px 0 0 0">
		<input type="text" placeholder="input job id....." id="jobId" style="margin-bottom: 0; margin-right: 5px" size="5" />
        <input type="text" placeholder="input start createDate ....." id="from" name="from" style="margin-bottom: 0; margin-right: 5px" size="5" />
        <input type="text" placeholder="input end createDate....." id="to" name="to" style="margin-bottom: 0; margin-right: 5px"/>
        <select name="taskTypeChoose" id="taskTypeChoose" style="margin-bottom: 0; margin-right: 5px">
	         <option value="" selected="selected">all</option>
			 <option value ="dwg">dwg</option>
			 <option value ="rvt">rvt</option>
			 <option value ="doc">doc</option>
			 <option value ="gcl">gcl</option>
	    </select>
		<button class="btn btn-inverse update-btn"><i class="icon-filter icon-white"></i> Filter</button>&nbsp;
		<button class="btn btn-inverse update-btn"><i class="icon-refresh icon-white"></i> Refresh</button>&nbsp;
		<a id="download" href="${path}/status/downLoadTask" class="btn btn-inverse download-btn"><i class="icon-download icon-white"></i> DownLoad</a></div>
		<div class="">
			<div class="">
				<div class="widget-box">
					<div class="widget-title">
						<h5>Task</h5>
						<!-- 
						<h5><a id="prev" href="javascript:void(0);">上一页</a>&nbsp;<a id="next" href="javascript:void(0);">下一页</a></h5>
						-->
					</div>
					<div class="widget-content nopadding" >
						<table class="table table-bordered table-striped">
							<thead>
								<tr>
									<th>TaskId</th>
									<th>JobId</th>
									<th>文件名称</th>
									<th>任务类型</th>
									<th>任务状态</th>
									<th>Agent IP</th>
									<th>创建时间</th>
									<th>提交时间</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody id="task">
							</tbody>
						</table>
					</div>
					<div class="loading" id="loading">
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="modal fade in hide" id="config-modal">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4>task-detail</h4>
  </div>
  <div class="modal-body">
  
  	<table class="table table-bordered table-striped">
  		<tr>
    	   <td>taskId</td>
    	   <td id="taskId_modal">${taskId}</td>
    	</tr>
    	<tr>
    	   <td>jobId</td>
    	   <td id="jobId_modal">${jobId}</td>
    	</tr>
    	<tr>
    	   <td>任务类型</td>
    	   <td id="taskType_modal">${taskType}</td>
    	</tr>
        <tr>
    	   <td>任务状态</td>
    	   <td id="taskStatus_modal">${taskStatus}</td>
    	</tr>
    	<tr>
    	   <td>Agent IP</td>
    	   <td id="agentIp_modal">${agentIp}</td>
    	</tr>
    	<tr>
    	   <td>创建时间</td>
    	   <td id="jobServerSumbitTime_modal">${jobServerSumbitTime}</td>
    	</tr>
    	<tr>
    	   <td>提交时间</td>
    	   <td id="inQuqueTime_modal">${inQuqueTime}</td>
    	</tr>
    	<tr>
    	   <td>下载时间</td>
    	   <td id="downLoadTime_modal">${downLoadTime}</td>
    	</tr>
    	<tr>
    	   <td>处理时间</td>
    	   <td id="computeTime_modal">${computeTime}</td>
    	</tr>
    	<tr>
    	   <td>上传时间</td>
    	   <td id="uploadTime_modal">${uploadTime}</td>
    	</tr>
    	<tr>
    	   <td>完成时间</td>
    	   <td id="endTime_modal">${endTime}</td>
    	</tr>
    	<tr>
    	   <td>等待时长(毫秒)</td>
    	   <td id="waitDuration_modal">${waitDuration}</td>
    	</tr>
    	<tr>
    	   <td>下载时长(毫秒)</td>
    	   <td id="downLoadDuration_modal">${downLoadDuration}</td>
    	</tr>
    	<tr>
    	   <td>处理时长(毫秒)</td>
    	   <td id="computeDuration_modal">${computeDuration}</td>
    	</tr>
    	<tr>
    	   <td>上传时长(毫秒)</td>
    	   <td id="uploadDuration_modal">${uploadDuration}</td>
    	</tr>
    	<tr>
    	   <td>错误信息</td>
    	   <td id="errorMsg_modal">${errorMsg}</td>
    	</tr>
  	</table>
  </div>
</div>
<%@ include file="footer.jsp"%>
<script src="${path}/resources/js/monitor-task.min.js"></script>
</body>
</html>
